From: Álvaro Fernández Rojas Date: Sat, 6 Dec 2025 12:45:35 +0000 (+0100) Subject: src: stop overriding allow_slaac_only values X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=8cfe71daaad7dce0a6131fdca41652f9e7ac057b;p=project%2Fodhcp6c.git src: stop overriding allow_slaac_only values script_sync_delay is no longer updated with allow_slaac_only, so this isn't needed. Signed-off-by: Álvaro Fernández Rojas --- diff --git a/src/config.c b/src/config.c index f7977b4..23928cb 100644 --- a/src/config.c +++ b/src/config.c @@ -168,9 +168,6 @@ bool config_set_request_prefix(unsigned int length, unsigned int id) { config_dhcp.ia_pd_mode = length > 128 ? IA_MODE_NONE : IA_MODE_TRY; if (length <= 128) { - if (config_dhcp.allow_slaac_only >= 0 && config_dhcp.allow_slaac_only < 10) - config_dhcp.allow_slaac_only = 10; - prefix.length = length; prefix.iaid = htonl(id); diff --git a/src/odhcp6c.c b/src/odhcp6c.c index 349f4ee..6b01e12 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -230,9 +230,6 @@ int main(_o_unused int argc, char* const argv[]) if (config_dhcp->ia_pd_mode == IA_MODE_NONE) config_dhcp->ia_pd_mode = IA_MODE_TRY; - if (config_dhcp->allow_slaac_only >= 0 && config_dhcp->allow_slaac_only < 10) - config_dhcp->allow_slaac_only = 10; - struct odhcp6c_request_prefix prefix = { 0 }; optpos = strchr(optarg, '/');